/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VisMenu.java
 *
 * Created on 18/02/2011, 11:24:10 AM
 */
package coladas;

/**
 *
 * @author cbazan
 */
public class VisMenu extends javax.swing.JFrame {

    Operario ope;

    /** Creates new form VisMenu */
    public VisMenu() {
        initComponents();
        ope = new Operario();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jb_Pedidos = new javax.swing.JButton();
        jbCertificados = new javax.swing.JButton();
        jbRegColadas = new javax.swing.JButton();
        jbSalir = new javax.swing.JButton();
        jB_Consulta1 = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem4 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("CONTROL DE COLADAS");

        jb_Pedidos.setText("Registrar Pedidos");
        jb_Pedidos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_PedidosActionPerformed(evt);
            }
        });

        jbCertificados.setText("Registrar Certificados");
        jbCertificados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbCertificadosActionPerformed(evt);
            }
        });

        jbRegColadas.setText("Registrar Coladas");
        jbRegColadas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbRegColadasActionPerformed(evt);
            }
        });

        jbSalir.setText("Salir del Sistema");
        jbSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbSalirActionPerformed(evt);
            }
        });

        jB_Consulta1.setText("Consultar Certificados");
        jB_Consulta1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_Consulta1ActionPerformed(evt);
            }
        });

        jMenu1.setText("File");

        jMenuItem1.setText("Registrar Pedidos");
        jMenu1.add(jMenuItem1);

        jMenuItem2.setText("Registrar Certificados");
        jMenu1.add(jMenuItem2);

        jMenuItem3.setText("Registrar Coladas");
        jMenu1.add(jMenuItem3);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");

        jMenuItem4.setText("Consultar Certifcados");
        jMenu2.add(jMenuItem4);

        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jB_Consulta1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)
                    .addComponent(jbSalir, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jbRegColadas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jbCertificados, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jb_Pedidos, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(31, 31, 31))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jb_Pedidos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbCertificados)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbRegColadas)
                .addGap(18, 18, 18)
                .addComponent(jB_Consulta1)
                .addGap(48, 48, 48)
                .addComponent(jbSalir)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jb_PedidosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_PedidosActionPerformed
        // TODO add your handling code here:
        VisPedidos vp = new VisPedidos(ope);
        vp.setLocationRelativeTo(this);
        vp.setVisible(true);


    }//GEN-LAST:event_jb_PedidosActionPerformed

    private void jbCertificadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbCertificadosActionPerformed
        // TODO add your handling code here:
        VisRegCertificado vp = new VisRegCertificado(ope);
        vp.setLocationRelativeTo(this);
        vp.setVisible(true);
    }//GEN-LAST:event_jbCertificadosActionPerformed

    private void jbRegColadasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbRegColadasActionPerformed
        // TODO add your handling code here:

        VisRegColada vp = new VisRegColada(ope);
        vp.setLocationRelativeTo(this);
        vp.setVisible(true);

    }//GEN-LAST:event_jbRegColadasActionPerformed

    private void jB_Consulta1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_Consulta1ActionPerformed
        // TODO add your handling code here:
         VisConsultaCertificados vp = new VisConsultaCertificados(ope);
        vp.setLocationRelativeTo(this);
        vp.setVisible(true);

    }//GEN-LAST:event_jB_Consulta1ActionPerformed

    private void jbSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbSalirActionPerformed
        this.dispose();
    }//GEN-LAST:event_jbSalirActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jB_Consulta1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JButton jbCertificados;
    private javax.swing.JButton jbRegColadas;
    private javax.swing.JButton jbSalir;
    private javax.swing.JButton jb_Pedidos;
    // End of variables declaration//GEN-END:variables
}
